package com.jinwei.qunguanjia.web.system.vo;

import com.jinwei.qunguanjia.common.core.domain.entity.DefaultEntity;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 部门表 sys_dept
 * 
 * @author ruoyi
 */
@Data
public class SysDeptVO extends DefaultEntity
{
    private String deptId; //部门ID
    private String parentId; //父部门ID
    private String ancestors; //祖级列表
    @NotBlank(message = "部门名称不能为空")
    @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符")
    private String deptName; //部门名称
    @NotNull(message = "显示顺序不能为空")
    private Integer orderNum; //显示顺序
    private String leader; //负责人
    @Size(min = 0, max = 11, message = "联系电话长度不能超过11个字符")
    private String phone; //联系电话
    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    private String email; //邮箱
    private String deptStatus; //部门状态:0正常,1停用
    private String parentName; //父部门名称
    private List<SysDeptVO> children ; //子部门

}
